package com.ruoyi.pg.answerSheet.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.pg.answerSheet.domain.PgAnswerLog;
import com.ruoyi.pg.answerSheet.vo.PgAnswerLogVo;
import com.ruoyi.pg.answerSheet.mapper.PgAnswerLogMapper;
import com.ruoyi.pg.answerSheet.service.IPgAnswerLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 答题日志Service业务层处理
 *
 * @author Ming
 * @date 2025-09-17
 */
@Service
public class PgAnswerLogServiceImpl extends ServiceImpl<PgAnswerLogMapper, PgAnswerLog> implements IPgAnswerLogService {

    @Override
    public TableDataInfo<PgAnswerLogVo> queryList(PgAnswerLogVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<PgAnswerLogVo> queryAll(PgAnswerLogVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public PgAnswerLogVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
